export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

// SKU基础信息 类型
export interface SkuListItem {
  id: number;
  createTime?: string;
  updateTime?: string;
  spuId: number;
  price: number;
  skuName: string;
  skuDesc: string;
  weight: string;
  tmId: number;
  category3Id: number;
  skuDefaultImg: string;
  isSale: number;
  skuImageList?: any[];
  skuAttrValueList?: any[];
  skuSaleAttrValueList?: any[];
}

// SKU列表 类型
export type SkuList = SkuListItem[];

// SKU列表 数据类型
export interface SkuListData {
  total: number;
  size: number;
  current: number;
  orders: any[];
  optimizeCountSql: boolean;
  hitCount: boolean;
  countId: null;
  maxLimit: null;
  searchCount: boolean;
  pages: number;
  records: SkuList;
}

// SKU列表 返回类型
export interface SkuListResult extends ResponseData {
  data: SkuListData;
}
